-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add signature support for the RPM module #27069
Add signature support for the RPM module #27069
Conversation
|
You could also sign existing packages |
Signing existing packages is not well suited to be done on update, the best option is to create a manual task, sorry I'm not familiar with gitea. |
It may not work well because the old way of signing is missing. Note: |
Seems they fixed it in ProtonMail/go-crypto#175, no? Long-term, it's very much preferable to depend on a supported package, ideally with some tests to confirm the signatures work, as just from reading that issue, it seems like something that will be prone to breakage in the future. |
As of now, the pr functionality is complete and only lacks testing. |
…odingDragon/gitea into feature-support-rpm-gpgsign
This pull request comes from go-gitea/gitea#27069. If the rpm package does not contain a matching gpg signature, the installation will fail. See ([gitea/gitea#27031](go-gitea/gitea#27031)) , now auto-signing all new rpm uploads. This option is turned off by default for compatibility. <!--start release-notes-assistant--> ## Draft release notes <!--URL:https://codeberg.org/forgejo/forgejo--> - Features - [PR](https://codeberg.org/forgejo/forgejo/pulls/4780): <!--number 4780 --><!--line 0 --><!--description QWRkIHNpZ25hdHVyZSBzdXBwb3J0IGZvciB0aGUgUlBNIG1vZHVsZQ==-->Add signature support for the RPM module<!--description--> <!--end release-notes-assistant--> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4780 Reviewed-by: Earl Warren <[email protected]> Co-authored-by: Exploding Dragon <[email protected]> Co-committed-by: Exploding Dragon <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ExplodingDragon for this PR (and your others too)! I've been able to pull this locally and test it, and it works as expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. And we need to update https://gitea.com/gitea/docs/src/branch/main/docs/administration/config-cheat-sheet.md
* giteaofficial/main: Fix protected branch files detection on pre_receive hook (go-gitea#31778) Add signature support for the RPM module (go-gitea#27069) Fix null requested_reviewer from API (go-gitea#31773)
Fixes a resource leak introduced by #27069. - add defer - move sign code out of `repository.go`
close #27031
If the rpm package does not contain a matching gpg signature, the installation will fail. See (#27031) , now auto-signing rpm uploads.
This option is turned off by default for compatibility.